About: JavaScript Print
JavaScript does not have any print object or print methods.
You cannot access output devices from JavaScript.
The only exception is that you can call the window.print() method in the browser to print the content of the current window.
5 + 6 =
NOTE:Using document.write() after an HTML document is loaded, will delete all existing HTML.
window.alert(5 + 6); は alert(5 + 6); のように書くこともできる。
For debugging purposes, you can call the console.log() method in the browser to display data.